package com.yudean.esb.domain.mds;

import java.io.Serializable;
import java.util.Date;

/**
 * MdsJeLines pojo类。
 *
 * @author 吕滨 代码生成工具v1.0
 * @version 1.0
 */
public class MdsJeLines implements Serializable {
    private static final long serialVersionUID = -144911778315047449L;

    private Long ledgerId;

    private Long ledgerCoaId;

    private Long orgId;

    private String compCode;

    private Date creationDate;

    private Long createdBy;

    private Date lastUpdateDate;

    private Long lastUpdatedBy;

    private Long lastUpdateLogin;

    private Long jeBatchId;

    private Long jeHeaderId;

    private Long jeLineNum;

    private String lineDesc;

    private Long codeCombinationId;

    private double accountedDr;

    private double accountedCr;

    public Long getLedgerId() {
        return ledgerId;
    }

    public void setLedgerId(Long ledgerId) {
        this.ledgerId = ledgerId;
    }

    public Long getLedgerCoaId() {
        return ledgerCoaId;
    }

    public void setLedgerCoaId(Long ledgerCoaId) {
        this.ledgerCoaId = ledgerCoaId;
    }

    public Long getOrgId() {
        return orgId;
    }

    public void setOrgId(Long orgId) {
        this.orgId = orgId;
    }

    public String getCompCode() {
        return compCode;
    }

    public void setCompCode(String compCode) {
        this.compCode = compCode;
    }

    public Date getCreationDate() {
        return creationDate;
    }

    public void setCreationDate(Date creationDate) {
        this.creationDate = creationDate;
    }

    public Long getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(Long createdBy) {
        this.createdBy = createdBy;
    }

    public Date getLastUpdateDate() {
        return lastUpdateDate;
    }

    public void setLastUpdateDate(Date lastUpdateDate) {
        this.lastUpdateDate = lastUpdateDate;
    }

    public Long getLastUpdatedBy() {
        return lastUpdatedBy;
    }

    public void setLastUpdatedBy(Long lastUpdatedBy) {
        this.lastUpdatedBy = lastUpdatedBy;
    }

    public Long getLastUpdateLogin() {
        return lastUpdateLogin;
    }

    public void setLastUpdateLogin(Long lastUpdateLogin) {
        this.lastUpdateLogin = lastUpdateLogin;
    }

    public Long getJeBatchId() {
        return jeBatchId;
    }

    public void setJeBatchId(Long jeBatchId) {
        this.jeBatchId = jeBatchId;
    }

    public Long getJeHeaderId() {
        return jeHeaderId;
    }

    public void setJeHeaderId(Long jeHeaderId) {
        this.jeHeaderId = jeHeaderId;
    }

    public Long getJeLineNum() {
        return jeLineNum;
    }

    public void setJeLineNum(Long jeLineNum) {
        this.jeLineNum = jeLineNum;
    }

    public String getLineDesc() {
        return lineDesc;
    }

    public void setLineDesc(String lineDesc) {
        this.lineDesc = lineDesc;
    }

    public Long getCodeCombinationId() {
        return codeCombinationId;
    }

    public void setCodeCombinationId(Long codeCombinationId) {
        this.codeCombinationId = codeCombinationId;
    }

    public double getAccountedDr() {
        return accountedDr;
    }

    public void setAccountedDr(double accountedDr) {
        this.accountedDr = accountedDr;
    }

    public double getAccountedCr() {
        return accountedCr;
    }

    public void setAccountedCr(double accountedCr) {
        this.accountedCr = accountedCr;
    }

    public String toString() {
        StringBuffer buf = new StringBuffer();
        buf.append("\r\nledgerId =" + this.ledgerId);
        buf.append("\r\nledgerCoaId =" + this.ledgerCoaId);
        buf.append("\r\norgId =" + this.orgId);
        buf.append("\r\ncompCode =" + this.compCode);
        buf.append("\r\ncreationDate =" + this.creationDate);
        buf.append("\r\ncreatedBy =" + this.createdBy);
        buf.append("\r\nlastUpdateDate =" + this.lastUpdateDate);
        buf.append("\r\nlastUpdatedBy =" + this.lastUpdatedBy);
        buf.append("\r\nlastUpdateLogin =" + this.lastUpdateLogin);
        buf.append("\r\njeBatchId =" + this.jeBatchId);
        buf.append("\r\njeHeaderId =" + this.jeHeaderId);
        buf.append("\r\njeLineNum =" + this.jeLineNum);
        buf.append("\r\nlineDesc =" + this.lineDesc);
        buf.append("\r\ncodeCombinationId =" + this.codeCombinationId);
        buf.append("\r\naccountedDr =" + this.accountedDr);
        buf.append("\r\naccountedCr =" + this.accountedCr);
        return buf.toString();
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        long temp;
        temp = Double.doubleToLongBits(accountedCr);
        result = prime * result + (int) (temp ^ (temp >>> 32));
        temp = Double.doubleToLongBits(accountedDr);
        result = prime * result + (int) (temp ^ (temp >>> 32));
        result = prime
                * result
                + ((codeCombinationId == null) ? 0 : codeCombinationId
                .hashCode());
        result = prime * result
                + ((compCode == null) ? 0 : compCode.hashCode());
        result = prime * result
                + ((createdBy == null) ? 0 : createdBy.hashCode());
        result = prime * result
                + ((creationDate == null) ? 0 : creationDate.hashCode());
        result = prime * result
                + ((jeBatchId == null) ? 0 : jeBatchId.hashCode());
        result = prime * result
                + ((jeHeaderId == null) ? 0 : jeHeaderId.hashCode());
        result = prime * result
                + ((jeLineNum == null) ? 0 : jeLineNum.hashCode());
        result = prime * result
                + ((lastUpdateDate == null) ? 0 : lastUpdateDate.hashCode());
        result = prime * result
                + ((lastUpdateLogin == null) ? 0 : lastUpdateLogin.hashCode());
        result = prime * result
                + ((lastUpdatedBy == null) ? 0 : lastUpdatedBy.hashCode());
        result = prime * result
                + ((ledgerCoaId == null) ? 0 : ledgerCoaId.hashCode());
        result = prime * result
                + ((ledgerId == null) ? 0 : ledgerId.hashCode());
        result = prime * result
                + ((lineDesc == null) ? 0 : lineDesc.hashCode());
        result = prime * result + ((orgId == null) ? 0 : orgId.hashCode());
        return result;
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (getClass() != obj.getClass())
            return false;
        MdsJeLines other = (MdsJeLines) obj;
        if (Double.doubleToLongBits(accountedCr) != Double
                .doubleToLongBits(other.accountedCr))
            return false;
        if (Double.doubleToLongBits(accountedDr) != Double
                .doubleToLongBits(other.accountedDr))
            return false;
        if (codeCombinationId == null) {
            if (other.codeCombinationId != null)
                return false;
        } else if (!codeCombinationId.equals(other.codeCombinationId))
            return false;
        if (compCode == null) {
            if (other.compCode != null)
                return false;
        } else if (!compCode.equals(other.compCode))
            return false;
        if (createdBy == null) {
            if (other.createdBy != null)
                return false;
        } else if (!createdBy.equals(other.createdBy))
            return false;
        if (creationDate == null) {
            if (other.creationDate != null)
                return false;
        } else if (!creationDate.equals(other.creationDate))
            return false;
        if (jeBatchId == null) {
            if (other.jeBatchId != null)
                return false;
        } else if (!jeBatchId.equals(other.jeBatchId))
            return false;
        if (jeHeaderId == null) {
            if (other.jeHeaderId != null)
                return false;
        } else if (!jeHeaderId.equals(other.jeHeaderId))
            return false;
        if (jeLineNum == null) {
            if (other.jeLineNum != null)
                return false;
        } else if (!jeLineNum.equals(other.jeLineNum))
            return false;
        if (lastUpdateDate == null) {
            if (other.lastUpdateDate != null)
                return false;
        } else if (!lastUpdateDate.equals(other.lastUpdateDate))
            return false;
        if (lastUpdateLogin == null) {
            if (other.lastUpdateLogin != null)
                return false;
        } else if (!lastUpdateLogin.equals(other.lastUpdateLogin))
            return false;
        if (lastUpdatedBy == null) {
            if (other.lastUpdatedBy != null)
                return false;
        } else if (!lastUpdatedBy.equals(other.lastUpdatedBy))
            return false;
        if (ledgerCoaId == null) {
            if (other.ledgerCoaId != null)
                return false;
        } else if (!ledgerCoaId.equals(other.ledgerCoaId))
            return false;
        if (ledgerId == null) {
            if (other.ledgerId != null)
                return false;
        } else if (!ledgerId.equals(other.ledgerId))
            return false;
        if (lineDesc == null) {
            if (other.lineDesc != null)
                return false;
        } else if (!lineDesc.equals(other.lineDesc))
            return false;
        if (orgId == null) {
            if (other.orgId != null)
                return false;
        } else if (!orgId.equals(other.orgId))
            return false;
        return true;
    }
}
